import request from '@/utils/request'

export function getList1(pageNum, pageSize, name) {
    return request({
      url: '/web/actionWeight/getPage',
      method: 'get',
      params: { pageNum, pageSize, name }
    })
}

export function add(data) {
    return request({
        url: 'web/actionWeight/add',
        method: 'post',
        data
    })
}

export function option(data) {
    return request({
        url: 'web/actionWeight/getInfo',
        method: 'get',
        data
    })
}

export function del(id) {
    return request({
        url: 'web/actionWeight/del/' + id,
        method: 'DELETE'
    })
}

export function update(data) {
    return request({
        url: 'web/actionWeight/update',
        method: 'post',
        data
    })
}

export function getEdi(id) {
    return request({
        url: 'web/actionWeight/get/' + id,
        method: 'get'
    })
}